package com.matrix.basecore.arouter

import androidx.appcompat.widget.AppCompatButton
import com.alibaba.android.arouter.launcher.ARouter
import com.matrix.basecore.constant.Constant

object ARouterUtils {
    /**
     * 跳转到首页
     */
    fun startHomeActivity() {
        ARouter.getInstance().build(Constant.ARouterPath.HomeActivityPath).navigation()
    }

    /**
     * 壁纸分类页
     */
    fun startPhoneComputerActivity(type: String) {
        ARouter.getInstance().build(Constant.ARouterPath.PhoneComputerActivityPath)
            .withString(Constant.ARouterString.TYPE, type).navigation()
    }

    /**
     * 预览
     */
    fun startPreviewActivityPath(data: ArrayList<String>, position: Int) {
        ARouter.getInstance().build(Constant.ARouterPath.PreviewActivityPath)
            .withInt(Constant.ARouterString.POSITION, position)
            .withStringArrayList(Constant.ARouterString.STRING_LIST, data).navigation()
    }

    /**
     * 预览
     */
    fun startJokePreviewActivity(content: String) {
        ARouter.getInstance().build(Constant.ARouterPath.JokePreviewActivityPath)
            .withString(Constant.ARouterString.CONTENT, content).navigation()
    }

    /**
     * 编辑
     */
    fun startPictureEditActivity() {
        ARouter.getInstance().build(Constant.ARouterPath.PictureEditActivityPath).navigation()
    }

    /**
     * Marquee
     */
    fun startMarqueeActivity() {
        ARouter.getInstance().build(Constant.ARouterPath.MarqueeActivityPath).navigation()
    }

    /**
     * GIF
     */
    fun startGIFActivity() {
        ARouter.getInstance().build(Constant.ARouterPath.GIFActivityPath).navigation()
    }

    /**
     * GIF photo
     */
    fun startGIFPhotoActivity() {
        ARouter.getInstance().build(Constant.ARouterPath.GIFPhotoActivityPath).navigation()
    }

    /**
     * GIF corp
     */
    fun startGIFCorpActivity(paths: ArrayList<String>) {
        ARouter.getInstance().build(Constant.ARouterPath.GIFCorpActivityPath)
            .withStringArrayList(Constant.ARouterString.PATH, paths)
            .navigation()
    }

    /**
     * GIF corp
     */
    fun startCorpTestActivity(paths: ArrayList<String>) {
        ARouter.getInstance().build(Constant.ARouterPath.CorpTestActivityPath)
            .withStringArrayList(Constant.ARouterString.PATH, paths)
            .navigation()
    }

    /**
     * ai菜单页面
     */
    fun startAiMenuActivity() {
        ARouter.getInstance().build(Constant.ARouterPath.AiMenuActivityPath)
            .navigation()
    }

    /**
     * Game
     */
    fun startGameActivity(game: String) {
        ARouter.getInstance().build(Constant.ARouterPath.GameActivityPath)
            .withString(Constant.ARouterString.GAME, game)
            .navigation()
    }

    /**
     * setting
     */
    fun startSettingActivity() {
        ARouter.getInstance().build(Constant.ARouterPath.SettingActivityPath).navigation()
    }

    /**
     * AboutUs
     */
    fun startSettingAboutUs(path: String, title: String) {
        ARouter.getInstance().build(Constant.ARouterPath.SettingAboutUsPath)
            .withString(Constant.ARouterString.PATH, path)
            .withString(Constant.ARouterString.TITLE, title)
            .navigation()
    }

    /**
     * share
     */
    fun startCardShareActivity() {
        ARouter.getInstance().build(Constant.ARouterPath.CardShareActivityPath).navigation()
    }

    /**
     * anim
     */
    fun startAnimWallpaperActivity() {
        ARouter.getInstance().build(Constant.ARouterPath.AnimWallpaperActivityPath).navigation()
    }

    /**
     * AnimCategory
     */
    fun startAnimCategoryActivityPath(position: Int) {
        ARouter.getInstance().build(Constant.ARouterPath.AnimCategoryActivityPath)
            .withInt(Constant.ARouterString.POSITION, position)
            .navigation()
    }

    /**
     * search
     */
    fun startSearchActivity() {
        ARouter.getInstance().build(Constant.ARouterPath.SearchActivityPath).navigation()
    }

}